package com.codebattery.client;

import com.codebattery.domain.model.Goods;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "goods-service")
public interface GoodsFeignClient {
    @RequestMapping(value = "/goods/get-goods/{goodsId}", method = RequestMethod.GET, produces = "application/json")
    Goods getGoods(@PathVariable Integer goodsId);
}